﻿using JTTD.Common.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace JTTD.DataBase.Model.ShopActivity
{
    /// <summary>
    /// 店铺优惠券
    /// </summary>
    [Table("t_shopactivity_info")]
    public  class ShopActivityInfoModel:BaseModel
    {
        /// <summary>
        /// 活动编号
        /// </summary>
        [Column("no")]
        public string No { get;  set; } 
        /// <summary>
        /// 活动名称
        /// </summary>
        [Column("name")]
        public string Name { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [Column("startTime")]
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Column("endTime")]
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 活动类型：0满减活动，1代金券活动
        /// </summary>
        [Column("type")]
        public ShopActivityTypeEnum Type { get; set; }
        /// <summary>
        /// 优惠条件达成金额
        /// </summary>
        [Column("fullAmount")]
        public decimal FullAmount { get; set; }
        /// <summary>
        /// 满减金额
        /// </summary>
        [Column("couponAmount")]
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 代金券金额
        /// </summary>
        [Column("cashCouponAmount")]
        public decimal CashCouponAmount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        [Column("isEnable")]
        public bool IsEnable { get; set; } = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("isDelete")]
        public bool IsDelete { get; set; } = false;

        /// <summary>
        /// 活动图片
        /// </summary>
        [Column("photo")]
        public string Photo { get; set; }

        /// <summary>
        /// 店家id
        /// </summary>
        [Column("shopId")]
        public int ShopId { get; set; }
    }
}
